//
//  FaceCollectionViewCell.m
//  HCWeibo
//
//  Created by huiwenjiaoyu on 15/12/21.
//  Copyright © 2015年 www.iphonetrain.com 无限互联. All rights reserved.
//

#import "FaceCollectionViewCell.h"

@implementation FaceCollectionViewCell

- (UIImageView *)imageView
{
    if (_imageView == nil) {
        CGFloat x = (self.frame.size.width - 30) * 0.5;
        CGFloat y = (self.frame.size.height - 30) * 0.5;
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(x, y, 30, 30)];
        [self addSubview:_imageView];
    }
    return _imageView;
}

- (void)setImage:(UIImage *)image
{
    if (_image != image) {
        _image = image;
        
        self.imageView.image = image;
    }
}

@end
